package com.shenzhenai.it_hei_ma.a02threadcase2;

/**
 * @author huangzehui
 * @date 2025/8/26 13:38 周二
 * @description
 *
 * 多线程&JUC-04-多线程的第二种实现方式
 * https://www.bilibili.com/video/BV1LG4y1T7n2?spm_id_from=333.788.player.switch&vd_source=e07cc8cc94eb22bd76722071b03cd199&p=4
 */
public class ThreadDemo {

    public static void main(String[] args) {
        MyRun mr = new MyRun();

        Thread t1 = new Thread(mr);
        t1.setName("线程1");

        Thread t2 = new Thread(mr);
        t2.setName("线程2");


        t1.start();
        t2.start();


    }

}
